Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compiler-internals): define unsupported operations after simple operations #9755

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Aug 2, 2024

This avoids the case of a base class SIMPLE_OPS dict overriding the UNSUPPORTED_OPS list.

@cpcloud cpcloud added internals Issues or PRs related to ibis's internal APIs risingwave The RisingWave backend labels Aug 2, 2024
@cpcloud cpcloud requested a review from jcrist August 2, 2024 14:54
@cpcloud cpcloud added bug Incorrect behavior inside of ibis refactor Issues or PRs related to refactoring the codebase labels Aug 2, 2024
@@ -49,6 +44,12 @@ def visit_Correlation(self, op, *, left, right, how, where):
op, left=left, right=right, how=how, where=where
)

def visit_First(self, op, *, arg, where):
return self.agg.first_value(arg, where=where)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is implemented this way as a test case for the definition order, but it turns out to be needed in #9729.

@cpcloud
Copy link
Member Author

cpcloud commented Aug 2, 2024

Merging this, so we can wrap up #9729

@cpcloud cpcloud enabled auto-merge (squash) August 2, 2024 16:10
@cpcloud cpcloud disabled auto-merge August 2, 2024 16:11
@cpcloud cpcloud merged commit d9b6264 into ibis-project:main Aug 2, 2024
87 checks passed
@cpcloud cpcloud deleted the fix-definition-order-for-compiler-subclasses branch August 2, 2024 16:11
@cpcloud cpcloud added this to the 9.3 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis internals Issues or PRs related to ibis's internal APIs refactor Issues or PRs related to refactoring the codebase risingwave The RisingWave backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant